import { Public } from '@/decorators/visit.decorator';
import { Controller, Get } from '@nestjs/common';
import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger';
import { HomeService } from './home.service';

@ApiTags('后台首页管理')
@Controller('admin/home')
export class HomeController {
  constructor(private readonly homeService: HomeService) {}

  @Public()
  @ApiOperation({
    summary: '后台首页查询',
  })
  @ApiBearerAuth()
  @Get('/homeSelect')
  homeSelect() {
    return this.homeService.homeSelect();
  }
}
